home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
kowin
/
archive
/
apl
/
gview120.lzh
/
gviewsrc.lzh
/
loadexec.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-13
|
616b
|
29 lines
/* Copyright 1992 H.Ogasawara (COR.) */
#include <corlib.h>
#include <sys_doslib.h>
#include "gview.h"
GV_VramGetExec( exec, name, gp )
char *exec, *name;
GVIEW *gp;
{
int ret;
unsigned char cmd[96], line[256], *str, *ptr;
for( str= cmd, ptr= exec ; *ptr > ' ' ; *str++= *ptr++ );
*str= '\0';
for( str= line ; *ptr ; *str++= *ptr++ );
*str++= ' ';
for( ptr= name ; *ptr ; *str++= *ptr++ );
*str= '\0';
WindowScreenQuit();
ret= WindowLoadExec( cmd, line, NULL, NULL );
if( ret ){
WindowScreenInit();
return ret;
}
GV_VramToBuf( gp );
WindowScreenInit();
return ret;
}